/***************************************************************************
 *   Copyright (C) 2008 by Goliash   *
 *   goliash@goliash.net   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#include "picture.h"

const QStringList Picture::exifKeys = QStringList() << "Exif.Image.Make" << "Manufacturer" << 
						"Exif.Image.Model" << "Model" << 
						"Exif.Image.Orientation" << "Orientation" <<
						"Exif.Image.Software" << "Software" << 
						"Exif.Photo.PixelXDimension" << "Width" << 
						"Exif.Photo.PixelYDimension" << "Height" <<
						"Exif.Photo.ColorSpace" << "Color" << 
						"Exif.Photo.DateTimeOriginal" << "Date" << 
						"Exif.Photo.ExposureTime" << "Exposure Time" <<
						"Exif.Photo.ISOSpeedRatings" << "ISO" <<
						"Exif.Photo.Flash" << "Flash" << 
						"Exif.Photo.WhiteBalance" << "White Balance" <<
						"Exif.Photo.MeteringMode" << "Metering Mode" << 
						"Exif.Photo.MaxApertureValue" << "Max Apert. Value" <<
						"Exif.Photo.DigitalZoomRatio" << "Digital Zoom Ratio";

Picture::Picture()
{
	exifSet = false;
	width = 0;
	height = 0;
}

void Picture::setThumbnail(QByteArray thumb)
{
	this->thumbnail = thumb;
}

QByteArray Picture::getThumbnail()
{
	return thumbnail;
}

QString Picture::getExif()
{
	return exif;
}

void Picture::setExif(QString exif)
{
	this->exif = exif;
	exifSet = true;
}

bool Picture::isExifSet()
{
	return exifSet;
}

void Picture::setWidth(int width)
{
	this->width = width;
}

int Picture::getWidth()
{
	return width;
}

void Picture::setHeight(int height)
{
	this->height = height;
}

int Picture::getHeight()
{
	return height;
}
